﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vote_option_add.aspx.cs"
    Inherits="Com.CMS263.Web.manage.VoteManage.vote_option_add" %>

<%@ Import Namespace="Com.CMS263.PO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台-投票/调查系统</title>
    <link href="/manage/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/box.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="/manage/js/common.js"></script>

    <script language="javascript" type="text/javascript">
        function checkForm() {
            var o1 = _('txtTitle'), o2 = _('txtSortId'), // o3 = _('txtDescription'), o4 = _('txtProductImg'), 
		r1 = /^[a-z]([a-z ]+[a-z])?$/i, r2 = /^\d+$/, r3 = /^\d+(\.\d{2})?$/;
            if (o1.value.length < 1) { return ts(o1, '请输入选项内容!'); }
            if (!r2.test(o2.value)) { return ts(o2, '排序请输入数字!'); }
            // if (o3.value.length < 1) { return ts(o3, '请输入工程简介!'); }

            //if (o4.value.length < 1) { return ts(o4, '错误!'); }
            // if (o5.value.length < 1) { return ts(o6, '错误!'); }

            return true;
        }
        function ts(o, m) {
            o.focus(); alert(m); return false;
        }
       
    </script>

</head>
<body>
    <form id="form1" name="form1" runat="server" action="" enctype="multipart/form-data"
    method="post">
    <div class="main">
        <div class="mainMenu">
            <div class="mainMenuList">
                <ul>
                    <li class="s"><a href="vote_option_add.aspx?tid=<%=tid %>"><b>添加投票选项</b><span></span></a></li>
                    <li><a href="vote_option_list.aspx?tid=<%=tid %>"><b>投票选项列表</b><span></span></a></li>
                </ul>
            </div>
        </div>
        <div class="mainContent">
            <div class="productSearch">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
                    <tr>
                        <td style="padding-left: 30px; font-weight: bolder; font-size: 14px;">
                            <img title="问卷/调查" src="/manage/images/diaocha.jpg" />
                            <%=vt.Title %>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="con1 productForm">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
                    <tr>
                        <td width="180" class="r">
                            *排序：
                        </td>
                        <td>
                            <input id="txtSortId" name="txtSortId" value="<%=sort %>" type="text" class="input1"
                                style="width: 155px" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180" class="r">
                            *投票选项：
                        </td>
                        <td>
                            <input id="txtTitle" name="txtTitle" type="text" class="input1" style="width: 310px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="con1 productFormBtn cf">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="c">
                        </td>
                        <td style="margin-left: 200px">
                            <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return checkForm()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
